﻿// -----------------------------------------------------------------------
// <copyright file="FrameworkConfig.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace NetFramework.Setting
{
    using System;
    using System.Configuration;
    using NetFramework.Configuration;


    /// <summary>
    /// 获取 Framework 相关配置
    /// </summary>
    internal class FrameworkConfig
    {
        public static T GetConfig<T>() where T : ConfigurationSection, new()
        {
            return ConfigManager.DotNetConfig.GetConfig<T>();
        }

        /// <summary>
        /// 获取系统 Log 日志配置
        /// </summary>
        /// <returns></returns>
        public static LoggerSetting GetLoggerSetting()
        {
            return GetConfig<LoggerSetting>();
        }
    }
}
